
const {loginServer}=require('../service/user');

console.log(loginServer);
exports.login=async ctx=>{

   let result=await loginServer(ctx.request.body)
   
   if(result.length){
       ctx.body={
           code:1001,
           msg:'登录成功l'
       }
   }else{
    ctx.body={
        code:1002,
        msg:'登录失败'
    }
   }
}